package name.fowler.refactoring.simplestore;

public class ChildrensMoviePriceCalculator extends PriceCalculator {
	
	public ChildrensMoviePriceCalculator() {
		super(Category.Childrens);
	}

	@Override
	public double calculatePrice(int daysRented) {
		double price = 1.5;
		
		if (daysRented > 3)
		{
			price = (daysRented - 3) * 1.5;
		}
		
		return price;
	}

	@Override
	public int calculateBonuses(int daysRented) {
		return 1;
	}

}
